/*
FONTS --------------------------------------------------------
Header font: Playfair Display
             font-family: "Playfair Display", serif;
             font-optical-sizing: auto;
             font-weight: <Use a value from 400 to 900>;

Text font: Nunito
           font-family: "Nunito", sans-serif;
           font-optical-sizing: auto;
           font-weight: <Use a value from 200 to 1000>;

More info text font: Cutive Mono
                     font-family: "Cutive Mono", monospace;
                     font-weight: 400;
                     font-style: normal;

COLORS --------------------------------------------------------
Background: #0a0a0a , rgb(10, 10, 10) , hsl(0°, 0%, 4%)
Main Text: #F5F5F5 , rgb(245, 245, 245) , hsl(0°, 0%, 96%)
Primary Accent: #D0342C , rgb(208, 52, 44) , hsl(3°, 65%, 49%)
Secondary Accent: #FF5733 , rgb(255, 87, 51) , hsl(11°, 100%, 60%)
Muted UI/Borders/Icons: #B8B8B8 , rgb(184, 184, 184) , hsl(0°, 0%, 72%)
Link Hover/Focus States: #FF7353 , rgb(255, 115, 83) , hsl(11°, 100%, 66%)

*/

/* ------Overall setup------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
  

html, body {
    background-color: #0A0A0A;
    color: #F5F5F5;
    margin: 0;
    padding: 0;
    height: 100%;
}  

h1 {
    font-family: 'Playfair Display', serif;
    font-optical-sizing: auto;
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
}
  
h2 {
    font-family: 'Playfair Display', serif;
    font-optical-sizing: auto;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
}
  
h3 {
    font-family: 'Nunito', sans-serif;
    font-optical-sizing: auto;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.25px;
}
  
h4 {
    font-family: 'Nunito', sans-serif;
    font-optical-sizing: auto;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.25px;
}
  
p, li, a {
    font-family: 'Nunito', sans-serif;
    font-optical-sizing: auto;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.25px;
}
  
small {
    font-family: "Cutive Mono", monospace;
    font-weight: 400;
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.5;
    letter-spacing: 0.25px;
    color: #B8B8B8;
}
  
/* button {
    font-family: 'Nunito', sans-serif;
    font-optical-sizing: auto;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;

    background-color: #D0342C;
    color: #F5F5F5;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #FF5733;
    box-shadow: 0 0 8px rgba(255, 115, 83, 0.4);
    transform: translateY(-2px);
} */

.social-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.social-icons a {
    color: #B8B8B8;
    transition: all 0.3s ease;
    display: inline-flex;
    text-decoration: none;
}

.social-icons a:hover {
    color: #D0342C;
    transform: scale(1.1);
    filter: drop-shadow(0 0 2px rgba(208, 52, 44, 0.2));
}

.social-icons svg {
    width: 24px;
    height: 24px;
}

section {
    margin-bottom: 4rem;
}

/* ------Header------*/
header {
    border-bottom: 2px solid #D0342C;
    box-shadow: 0 2px 100px rgba(208, 52, 44, 0.5);
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
}

#header-content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;

    text-align: center;
}

.site-name {
    /* flex-grow: 5;
    flex-basis: content;
    flex-shrink: 0; */
    flex: 5 0 content;
}

.site-name > h1 {
    font-size: 1.25rem;
}

#header-content > .social-icons {
    flex: 1 1 content;
}

/* ------Main------*/
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
} 

/* ------Hero Section------*/
#hero-section {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
    margin-top: 2rem;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.hero-image {
    width: 100px;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(208, 52, 44, 0.2);
}

.hero-more-info {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.hero-more-info-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hero-more-info-item span {
    color: #B8B8B8;
}

.hero-more-info-item svg {
    width: 20px;
    height: 20px;
}

.hero-more-info-item:nth-child(2) span {
    margin-left: -2px;
    margin-right: -2px;
}

/* .hero-more-info-item:nth-child(2) {
    display: none;
} */

.hero-description {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;

    max-width: 600px;
    line-height: 1.6;
}

.hero-main-desc {
    font-size: 1.1rem;
    color: #ddd;
}

.hero-aside-note {
    font-size: 0.7rem;
    font-style: italic;
    margin-top: -0.5rem;
    color: #aaa;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;

    margin-top: 1rem;
}

.hero-cta-text {
    font-weight: 600;
}

/* ------Skills Section------*/
.skills-section {
    align-items: center;
    text-align: center;
    border-bottom: 2px solid #B8B8B8;
    border-top: 2px solid #B8B8B8;
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.skills-section > h2 {
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.skills-section > h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #D0342C, #FF7353);
    border-radius: 2px;
    box-shadow: 0 0 10px #FF5733;
}

.skills-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 2rem auto;
    opacity: 0;
    transform: translateY(2rem);
    transition: all 1s ease;
}

.skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    transition: transform 0.3s, filter 0.3s;
    position: relative;
}

.skill-icon > img {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
    transition: transform 0.3s, filter 0.3s;
    /* filter: drop-shadow(0 0 4px #FF7353); */
}

.skill-icon:hover {
    transform: scale(1.1);
}

.skill-icon:hover img {
    filter: drop-shadow(0 0 2px #FF5733);
}

.skill-icon span {
    font-size: 0.75rem;
}

.skill-icon:hover span {
    color: #D0342C;
    filter: drop-shadow(0 0 2px rgba(208, 52, 44, 0.2));
}

.learning img {
    filter: grayscale(1) brightness(0.6);
    opacity: 0.5;
}

.learning:hover img {
    filter: grayscale(0.7) brightness(0.7);
}

.skill-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #D0342C;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 0 4px #FF7353;
}

.skills-section.show .skills-grid {
    opacity: 1;
    transform: translateY(0);
}

/* ------Projects Section------*/
.projects-section {
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
}

.projects-section > h2 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.projects-section > h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #D0342C, #FF7353);
    border-radius: 2px;
    box-shadow: 0 0 10px #FF5733;
}

.projects-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    grid-auto-rows: minmax(550px, 1fr);
    max-width: 1250px;
    margin: 0.5rem auto ;
    justify-items: space-between;
    align-items: stretch;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #111;
    width: 300px;
    align-items: center;
    border: 1px solid #2f2f2f;
    border-radius: 12px;
    box-shadow: 0px 1px 13px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
    border-color: #D0342C;
    transform: translateY(-4px);
}

.project-img {
    height: 200px;
    width: 100%;
    margin-bottom: 5px;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid #333;
}

.project-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 1.5rem;
}

.project-info > h4 {
    margin-top: 0;
}

.project-info p {
    margin: 10px 0;
}

.project-info .tech {
    font-size: 0.8rem;
    color: #888;
}

.project-info .date {
    font-size: 0.8rem;
    color: #888;
}

.github-link {
    display: inline-block;
    margin-top: 5px;
    color: #FF7353;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.github-link:hover {
    color: #D0342C;
}

.coming-soon {
    position: relative;
    background-color: #111;
    border: 1px dashed #444;
}

.soon-img {
    width: 100%;
    height: 200px;
    margin-bottom: 5px;
    object-fit: cover;
    object-position: 50% 50%;
    border-bottom: 1px solid #333;
    overflow: hidden;
}

.coming-soon .project-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #D0342C;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.soon-text {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

/* ------Footer------*/
footer {
    border-top: 2px solid #B8B8B8;
    margin-top: 4rem;
}

footer > section {
    margin: 1rem;
}

.copyright {
    align-items: center;
    background-color: #111;
    padding: 5px 5px;
    text-align: center;
}

.copyright a {
    text-decoration: none;
}

.copyright a:hover {
    color: #D0342C;
    text-decoration: underline;
}

/* ------Responsiveness------*/
/* Tablet (≥ 768px) */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }

    h2 { font-size: 2.5rem; }

    h3 { font-size: 1.75rem; }
    
    h4 { font-size: 1.5rem; }
    
    p   { font-size: 1.0625rem; }
    
    header,
    #hero-section,
    .skills-section,
    .projects-section {
        padding: 2rem 3rem;
    }

    #header-content {
        justify-content: space-evenly;
        align-items: center;
    }
}
  
/* Desktop (≥ 1024px) */
@media (min-width: 1024px) {
    h1 { font-size: 3.5rem; }
    
    h2 { font-size: 2.75rem; }
    
    h3 { font-size: 2rem; }
    
    h4 { font-size: 1.5rem; }
    
    p   { font-size: 1.125rem; }

    header,
    #hero-section,
    .skills-section,
    .projects-section {
        padding: 2rem 4rem;
    }
}

@media (max-width: 480px) {
    .skills-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }
}
  